//
//  XXJALLCell.m
//  gosh
//
//  Created by 许小军 on 16/9/28.
//  Copyright © 2016年 wyzc. All rights reserved.
//

#import "XXJALLCell.h"
#import "XXJAllModel.h"
#import <UIImageView+WebCache.h>
@interface XXJALLCell()
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *passtime;
@property (weak, nonatomic) IBOutlet UILabel *text;

@property (weak, nonatomic) IBOutlet UIImageView *profile_image;
@property (weak, nonatomic) IBOutlet UIButton *dingBtn;
@property (weak, nonatomic) IBOutlet UIButton *caiBtn;
@property (weak, nonatomic) IBOutlet UIButton *repostBtn;
@property (weak, nonatomic) IBOutlet UIButton *commentBtn;



@end
@implementation XXJALLCell
-(void)setModel:(XXJAllModel *)model
{
    _model=model;
    _name.text=model.name;
    _passtime.text=model.passtime;
    _text.text=model.text;
    [_profile_image sd_setImageWithURL:[NSURL URLWithString:model.profile_image] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        if (!image) {
            return ;
        }
    }];
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
